package cn.iocoder.yudao.module.wms.controller.admin.productionorder.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.iocoder.yudao.module.wms.dal.dataobject.productionorder.ProductionOrdersDO;

@Schema(description = "管理后台 - 生产任务单主表新增/修改 Request VO")
@Data
public class ProductionOrderSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26965")
    private Long id;

    private String serialNumber;

    @Schema(description = "部门id", example = "20374")
    private Long deptId;

    private LocalDateTime orderDate;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "审核人")
    private String auditor;

    private LocalDateTime auditTime;

    @Schema(description = "生产任务单子列表")
    private List<ProductionOrdersDO> productionOrderss;
    /***
     * 生产数量
     */
    private Double number;

    /***
     * 已生产数量
     */
    private Double producedNumber;

    /**
     * 审批结果
     *
     * 枚举 {@link}
     * 考虑到简单，所以直接复用了 BpmProcessInstanceStatusEnum 枚举，也可以自己定义一个枚举哈
     */
    private Integer status;

    /**
     * 对应的流程编号
     *
     * 关联 ProcessInstance 的 id 属性
     */
    private String processInstanceId;
}